var searchContent = new Vue({
    el: '#list',
    data: {
        question: '',
        items: []
    },
    watch: {
        // 如果 question 发生改变，这个函数就会运行
        question: function(newQuestion) {
            // this.answer = 'Waiting for you to stop typing...'
            this.getAnswer()
        }
    },
    methods: {
        goon: function(url) {
            var url = encodeURI();
            window.location.href = url;
        },
        getAnswer: _.debounce(
            function() {
                var vm = this
                var url = 'http://localhost/ypshow/mobile/client_api.php?act=find_shop';
                axios.post(url + '&supplier_name=' + vm.question)
                    .then(function(response) {
                        console.log(response.data.c)
                        if (response.data.c) {
                            console.log(response.data.o);
                            searchContent.items = response.data.o

                        }
                        getContent(response);
                    })
                    .catch(function(error) {
                        console.log(error);
                    })
            },
            // 这是我们为用户停止输入等待的毫秒数
            500
        )
    }
});

function getContent(response) {

}